package com.xukang.batch.processor;

import com.xukang.batch.po.Users;
import org.springframework.batch.item.ItemWriter;

import java.util.List;

/**
 * @description:
 * @author: xukang
 * @create: 2025-06-20
 */
public class MyItemWriter implements ItemWriter<Users> {

    @Override
    public void write(List<? extends Users> items) {
        System.out.println("write");
        for (Users item : items) {
            System.out.println("Writing item: " + item.toString());
        }
    }
}